package cn.meng.base.service;

import cn.meng.base.mapper.RoleMapper;
import cn.meng.base.vo.RoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService{

    @Autowired
    RoleMapper roleMapper;

    @Override
    @Cacheable(value = "Role",key = "#pk_role")
    public RoleVo queryRole(String pk_role) {
        return roleMapper.queryRole(pk_role);
    }

    @Override
    public String queryRoot() {
        return roleMapper.queryRoot();
    }
}
